#!/bin/sh

set -e

lb clean noauto "${@}"

rm -f config/binary
rm -f config/bootstrap
rm -f config/chroot
rm -f config/common
rm -f config/source

rm -fr config/rootfs
rm -fr config/packages.chroot
rm -fr config/packages.binary
rm -fr config/includes.source
rm -fr config/includes.installer
rm -fr config/includes.chroot_before_packages
rm -fr config/includes.chroot_after_packages
rm -fr config/includes.bootstrap
rm -fr config/includes.binary
rm -fr config/includes
rm -fr config/debian-installer
rm -fr config/apt

rm -f config/package-lists/live.list.chroot
rm -fr config/hooks/live
rm -f config/hooks/normal/0500-reproducible-glibc.hook.chroot
rm -f config/hooks/normal/0440-update-nvidia-alternative.hook.chroot
rm -f config/hooks/normal/0430-update-mlocate-database.hook.chroot
rm -f config/hooks/normal/0420-update-glx-alternative.hook.chroot
rm -f config/hooks/normal/0410-update-apt-xapian-index.hook.chroot
rm -f config/hooks/normal/0400-update-apt-file-cache.hook.chroot
rm -f config/hooks/normal/0300-remove-udev-persistent-net-rules.hook.chroot
rm -f config/hooks/normal/0200-remove-udev-persistent-cd-rules.hook.chroot
rm -f config/hooks/normal/0195-remove-ssl-cert-snakeoil.hook.chroot
rm -f config/hooks/normal/0190-remove-temporary-files.hook.chroot
rm -f config/hooks/normal/0180-remove-systemd-machine-id.hook.chroot
rm -f config/hooks/normal/0170-remove-python-py.hook.chroot
rm -f config/hooks/normal/0160-remove-openssh-server-host-keys.hook.chroot
rm -f config/hooks/normal/0150-remove-mdadm-configuration.hook.chroot
rm -f config/hooks/normal/0140-remove-log-files.hook.chroot
rm -f config/hooks/normal/0130-remove-gnome-icon-cache.hook.chroot
rm -f config/hooks/normal/0120-remove-dbus-machine-id.hook.chroot
rm -f config/hooks/normal/0110-remove-backup-files.hook.chroot
rm -f config/hooks/normal/0100-remove-adjtime-configuration.hook.chroot
rm -f config/hooks/normal/0040-create-locales-files.hook.chroot
rm -f config/hooks/normal/0030-enable-cryptsetup.hook.chroot
rm -f config/hooks/normal/0020-create-mtab-symlink.hook.chroot

rm -f build.log
